export interface btnObj {
    name: string;
    iconName: string;
    perms: string;
    isPlain: boolean;
}

// 工具列表
export const menuBtnList: Array<btnObj> = [
    {
        name: "新增",
        iconName: "plus",
        perms: "",
        isPlain: false,
    },
];

export const appTableHead = [
    {
        prop: "name",
        label: "菜单权限",
    },
    {
        prop: "icon",
        label: "图标",
    },

    {
        prop: "perm",
        label: "数据类型标识",
    },
    {
        prop: "sort",
        label: "显示顺序",
    },
    {
        prop: "backendRoute",
        label: "后台路由",
    },
    {
        prop: "status",
        label: "状态",
    },
];

export const appShowSataus = [
    {
        label: "显示",
        value: 1,
    },
    {
        label: "隐藏",
        value: 0,
    },
];

/** app小程序视图对象 */
export interface appVO {
    /** ICON */
    icon?: string;
    /** 菜单ID */
    id?: number;
    /** 菜单名称 */
    name?: string;
    /** 小程序权限标识 */
    perm?: string;
    /** 菜单排序(数字越小排名越靠前) */
    sort?: number;
    /** 菜单是否可见(1:显示;0:隐藏) */
    status?: number;
    /** 父菜单ID */
    parentId?: number;
    /** 后端路由 */
    backendRoute?: string;
    // 接口标识  1菜单  2app
    menuType?: string;
}
